
CC = g++
CFLAGS = -lm -lpthread -O3 -march=native -Wall -Wno-comment -Wformat=0 -finput-charset=GBK -mavx -std=gnu++11 -g
	
PREFIX = /usr/local/hanzhi-0.01

soFloder = $(PREFIX)/lib
includeFloder = $(PREFIX)/include

cbals=/usr/local/openbals-0.3.0

mnist:mnist_en.cpp
ifeq ($(USE_CBLAS), y)
	$(CC) mnist_en.cpp -I$(includeFloder) -L$(soFloder) -I$(cbals)/include -L$(cbals)/lib -lopenblas -lhanzhiCore -lnn -o mnist $(CFLAGS)
else
	$(CC) mnist_en.cpp -I$(includeFloder) -L$(soFloder) -lhanzhiCore -lnn -o mnist $(CFLAGS)
endif
	
clean:
	rm mnist -rf